﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using System.Web.Http.Description;
using d1Common.WebController;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
using d1Common;
using d1Common.Interface;
using Newtonsoft.Json.Linq;
using d1Project.Modules.Common.do4A.Models;
using d1Project.Modules.Common.do4A.Domain;

namespace d1Project.Modules.Common.do4A.Controllers.a1
{

    [Route("do4A/a1/MyToken")]
    public class MyTokensController : Authorize1Controller
    {
        protected override DbContext dbContext
        {
            get
            {
                return this.db;
            }
        }
        private do4ADbContext db = new do4ADbContext();

        public IHttpActionResult Delete()
        {
            AuthenticationMgr.Instance.RemoveToken1(this.Token);
            return Ok();
        }
    }
}
